<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // <!-- 35只  94脚 -->
      //  <!-- 假设笼子里全是鸡 -->
      for (var i = 0; i < 35; i++) {
        for (var j = 0; j < 35; j++) {
          if (i * 2 + j * 4 == 94 && i + j == 35) {
            console.log(`${i}只鸡${j}只兔`);
          }
        }
      }
    </script>
  </body>
</html>
